http = require 'http'

options =
    hostname: 'www.google.com',
    port: 80,
    path: '/upload',
    method: 'POST'

class SOAP:
    constuctor:(@user,@pwd,@token)->
    request 


req = http.request options, (res)->
    console.log 'STATUS: '+ res.statusCode
    console.log 'HEADERS: '+ JSON.stringify res.headers
    res.setEncoding 'utf8'
    res.on 'data',(chunk)->
        console.log 'BODY: '+chunk 

req.on 'error', (e)->
    console.log 'problem with request: ' + e.message

req.write 'data\n'
req.write 'data\n'

req.end()


